<?php


namespace app\model\admin;


use think\Model;
use think\model\concern\SoftDelete;

class AdminMenuModel extends Model
{
    protected $name = 'admin_menu';
    protected $autoWriteTimestamp = true;

    function rule()
    {
        return $this->hasOne(AdminRuleModel::class, 'menu_id', 'id')->bind(['role_id']);
    }
}